﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace CallBox.Private.Resources.Masterpage
{
    public partial class MasterPrivates : System.Web.UI.MasterPage
    {
        public String UrlJSONstringify = String.Empty;
        public String UrlJQuery = String.Empty;
        public String UrlJUICustomJS = String.Empty;
        public String UrlJQGrid = String.Empty;
        public String UrlJQGridLocale = String.Empty;
        public String UrlJqueryAlert = String.Empty;

        protected void Page_Load(object sender, EventArgs e)
        {
            ResolveJs();
            if (!IsPostBack)
            {
                // lblNombre.Text = BaseSession.Instance.SsPerson.Name;
              //  if (Session["User"] == null)
              //  { Response.Redirect("~/default.aspx"); }
            }

        }
        private void ResolveJs()
        {

            UrlJqueryAlert = ResolveClientUrl("~/Resources/js/jquery.alerts.js");
            UrlJQuery = ResolveClientUrl("~/Resources/js/jquery-1.7.2.min.js");
            UrlJUICustomJS = ResolveClientUrl("~/Resources/js/jquery-ui-1.8.20.custom.min.js");
            UrlJQGrid = ResolveClientUrl("~/Private/Resources/js/jquery.jqGrid.min.js");
            UrlJQGridLocale = ResolveClientUrl("~/Private/Resources/js/grid.locale-es.js");

        }
      
          

        protected void Next_Click(object sender, EventArgs e)
        {
            Session["User"] = null;
            Response.Redirect("~/default.aspx");

        }
    }
}